//
//  XHPathTimeScroller.h
//  XHPathTimeScroller
//
//  Created by 曾 宪华 on 14-1-18.
//  Copyright (c) 2014年 曾宪华 开发团队(http://iyilunba.com ) 本人QQ:543413507 本人QQ群（142557668）. All rights reserved.
//

#import <UIKit/UIKit.h>
@class XHPathTimeScroller;

@protocol XHPathTimeScrollerDelegate <NSObject>

// 1、TableView
- (UITableView *)tableViewForPathTimeScroller:(XHPathTimeScroller *)timeScroller;
// 2、NSDate
- (NSDate *)pathTimeScroller:(XHPathTimeScroller *)timerScroller dateForCell:(UITableViewCell *)cell;

@end

@interface XHPathTimeScroller : UIImageView

@property (nonatomic, weak) id <XHPathTimeScrollerDelegate> delegate;

@property (nonatomic, copy) NSCalendar *calendar;


- (instancetype)initWithDelegate:(id <XHPathTimeScrollerDelegate>)delegate;
- (instancetype)initWithDelegate:(id <XHPathTimeScrollerDelegate>)delegate timeScrollerBackgroundImage:(UIImage *)timeScrollerBackgroundImage;
- (instancetype)initWithDelegate:(id <XHPathTimeScrollerDelegate>)delegate timeScrollerBackgroundImage:(UIImage *)timeScrollerBackgroundImage hourHandImage:(UIImage *)hourHandImage minuteHandImage:(UIImage *)minuteHandImage;


- (void)scrollViewDidScroller:(UIScrollView *)scrollView;
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView;
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView;


@end
